﻿CREATE PROCEDURE [dbo].[sp_Update_LoginSuccess]
	@Id VARCHAR(10), 
	@Time DATETIME,
	@AgentNumber INT
AS
		UPDATE [dbo].[Accounts]
		SET [LastLogin] = @Time, [FailedLoginTimes] = 0, [AgentNumber] = @AgentNumber WHERE AccountID = @Id
	
RETURN 0;